package etc

type Config struct {
	Server   ServerConfig   `yaml:"server"`
	Database DatabaseConfig `yaml:"database"`
	Wenxin   WenxinConfig   `yaml:"wenxin"`
}

type ServerConfig struct {
	Ip        string `yaml:"ip"`
	Port      int    `yaml:"port"`
	Heartbeat int    `yaml:"heartbeat"`
}

type DatabaseConfig struct {
	Host     string `yaml:"host"`
	Port     int    `yaml:"port"`
	Username string `yaml:"username"`
	Password string `yaml:"password"`
}

type WenxinConfig struct {
	Apikey    string `yaml:"apikey"`
	Secretkey string `yaml:"secretkey"`
}
